﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyData.ApiDto
{
    public class SynsInput
    {
        public Guid MobileId { get; set; }
    }
    public class SynsInputP
    {
        public Guid MobileId { get; set; }
        public int PageSize { get; set; }
        public int PageIndex { get; set; }
    }
    public class SynsOput
    {
        public List<UserInfoSynsOput> UserInfoSynsOputs { get; set; }
        public List<Guid> DeleteUserIds { get; set; }
        public List<VisitorSynsOput> VisitorSynsOputs { get; set; }
        public List<Guid> DeleteVisitors { get; set; }
        public int TotolPage { get; set; }
    }

    public class UserInfoSynsOput
    {
        public Guid UserId { get; set; }
        public string DepartName { get; set; }
        public string NickName { get; set; }
        public string HeadUrl { get; set; }
    }
    public class VisitorSynsOput
    {
        public Guid VisitorId { get; set; }
        public string Name { get; set; }
        public string Company { get; set; }
        public string HeadUrl { get; set; }
        [JsonIgnore]
        public DateTime EndTime { get; set; }
        public string EndTimeStr {

            get {
                return this.EndTime.ToString("yyyy-MM-dd");
            }
        }
    }
}
